The CALENDAR device is used to get and set the current date and time information.
The device does not use hardware resources. It is not necessary to define the sampling time because the operation is carried out in a time not significantly. In the INTDEVICE section of the configuration unit must be add the following definition:
;--------------------------------- ; Device declaration ;--------------------------------- INTDEVICE <device_name> CALENDAR
Where:
| <device_name> | device name assigned |
| CALENDAR | keyword that identifies the device calendar. |
Declaration example:
;--------------------------------- ; Device declaration ;--------------------------------- INTDEVICE myCalen CALENDAR
The device continuously updates the current date and time data.
| Name | Dimensions | Default value | Access type | Unit of measure | Valid Range | Write conditions | Description |
|---|---|---|---|---|---|---|---|
| sec | Byte | - | RW | s (secondi) | da 0 a 59 | - | Secondi Il parametro indica i secondi dell'orario attuale. |
| min | Byte | - | RW | minuti | da 0 a 59 | - | Minuti Il parametro indica i minuti dell'orario attuale. |
| hour | Byte | - | RW | ore | da 0 a 23 | - | Ora Il parametro indica l'ora dell'orario attuale. |
| date | Byte | - | RW | giorni | da 1 a 31 | - | Giorno Il parametro indica il giorno della data attuale. |
| month | Byte | - | RW | mese | da 1 a 12 | - | Mese Il parametro indica il mese della data attuale secondo la seguente tabella: 1 gennaio 2 febbraio 3 marzo 4 aprile 5 maggio 6 giugno 7 luglio 8 agosto 9 settembre 10 ottobre 11 novembre 12 dicembre |
| year | Word | - | RW | anno | da 2000 a 2100 | - | Anno Il parametro indica l'anno corrente. |
Non vi sono stati.
Non vi sono comandi.